package Validation;

import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;


public class Validate {
	
	public static final boolean validateEmail(String email) {
		boolean isValid = false;
		try {
			InternetAddress internetAddress = new InternetAddress(email);
			internetAddress.validate();
			isValid = true;
		} catch (AddressException e) {
				e.printStackTrace();
		}
		return isValid;
	}
}
